
#ifndef SWE_F003FAKEBUMP
#define SWE_F003FAKEBUMP

#include <swegl/projection/Vec3f.h>
#include <swegl/data/Texture.h>
#include <swegl/render/ViewPort.h>

namespace swegl
{

	/**
	 * Poly Filler withour texture artefacts.
	 */
	class F003FakeBump
	{
		Vec3f v0, v1, v2;
		Vec3f t0, t1, t2;
		Texture *m_t;
		Texture *m_tb;
		ViewPort * m_viewport;

	public:
		F003FakeBump(const Vec3f & v0, const Vec3f & v1, const Vec3f & v2,
					 const Vec3f & t0, const Vec3f & t1, const Vec3f & t2,
					 Texture *t, Texture *tb, ViewPort * vp);
		void FillPoly(const Vec3f & facenormal, float *zbuffer);
	};

}

#endif // SWE_F003FAKEBUMP
